package com.sky.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sky.dto.SetmealDTO;
import com.sky.dto.SetmealPageQueryDTO;
import com.sky.entity.Setmeal;
import com.sky.result.PageResult;
import com.sky.vo.DishItemVO;
import com.sky.vo.SetmealVO;

import java.util.List;

public interface SetmealService extends IService<Setmeal> {
    Long countByCategoryId(Long id);

    Setmeal create(SetmealDTO setmealDTO);

    PageResult pageQuery(SetmealPageQueryDTO setmealPageQueryDTO);

    void deleteByIds(List<Long> ids);

    SetmealVO queryByIdWithDish(Long id);

    Setmeal updateById(SetmealDTO setmealDTO);

    Setmeal startOrStop(Long id, Integer status);

    List<Setmeal> listByCategoryId(Long categoryId);

    List<DishItemVO> getDishItemById(Long id);
}
